package com.kongjs.application.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum OperationType {
    SAVE_ONE("1000", "添加"),
    REMOVE_ONE("2000", "删除"),
    UPDATE_ONE("3000", "修改"),
    QUERY_ONE("4000", "查看"),
    QUERY_LIST("4001", "查看列表"),
    QUERY_PAGE("4002", "查看分页"),
    QUERY_TREE("4003", "查看树");

    @EnumValue
    private final String value;
    @JsonValue
    private final String desc;
}
